package cn.spream.common.util;

import java.util.regex.Pattern;

/**
 * 正则表达式
 * Created with IntelliJ IDEA.
 * User: shaojiaxin
 * Date: 13-8-19
 * Time: 下午3:40
 * To change this template use File | Settings | File Templates.
 */
public class Regexp {

    //邮箱
    public static final Pattern EMAIL = Pattern.compile("[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[\\w](?:[\\w-]*[\\w])?");
    //字母数字的
    public static final Pattern ALPHANUMERIC = Pattern.compile("\\w+", Pattern.CASE_INSENSITIVE);

}
